{layout name="layout" /}
         <!-- Content -->
            <section id="content" class="container">
                <!-- Breadcrumb -->
  {include file="public/breadcrumb"/}
                <h4 class="page-title b-0">菜单添加</h4>
                
                <div class="listview list-container">
                    <header class="listview-header media">
                        
                        
                        <ul class="list-inline list-mass-actions pull-left">
                            <li>
                                <a data-toggle="modal" href="{:url('back/rule/add')}" title="Add" class="tooltips">
                                    <i class="sa-list-add"></i>
                                </a>
                            </li>

                            <li class="show-on" style="display: none;">
                                <a href="" title="Delete" class="tooltips">
                                    <i class="sa-list-delete"></i>
                                </a>
                            </li>
                        </ul>
                             <div class="clearfix"></div>
                    </header>

                 <div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">菜单添加</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-sm-10">
                        <form action="{:url('back/rule/add')}" class="form-horizontal ajax-form" method="post">
                            <div class="form-group">
                                <label for="inputparent_id" class="col-sm-2 control-label">上级菜单</label>
                                <div class="col-sm-10">
                                    <select name="parent_id" id="inputparent_id" class="form-control">
                                        <option value="0">顶级菜单</option>
                                        {volist name="ruleRows" id="vo"}
                                        <option value="{$vo.id}"> {$vo.title}</option>
                                         {volist name="$vo->parent" id="v"}
                                        <option value="{$v.id}"> ┗━{$v.title}</option>
                                         {/volist}
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputTitle" class="col-sm-2 control-label">菜单名称</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="title" id="inputTitle" value="" placeholder="菜单名称">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputName" class="col-sm-2 control-label">菜单链接</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="name" id="inputName" value="" placeholder="菜单链接"> </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="inputIcon"> ICON图标 </label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="class" id="inputIcon" value="" placeholder="ICON图标"> </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="inputSort"> 排序 </label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control " name="sort" value="" id="inputSort" placeholder="越小越靠前">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="inputstatus"> 是否启用 </label>
                                <div class="col-sm-10">
                                    <input type="checkbox" name="status" id="inputstatus" value="1">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-9">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
                </div>
        </section>
        
